import http from './Ciallo'

export async function getUpdateLogAPI() {
  return await http({
    url: '/log',
    method: 'get',
  })
}

export async function addUpdateLogAPI(params: {
  logTitle: string
  logData: string
  logVersion: string
}) {
  return await http({
    url: '/addLog',
    method: 'post',
    params,
  })
}

export async function changeUpdateLogAPI(params: {
  id: string
  logTitle: string
  logData: string
  logVersion: string
}) {
  return await http({
    url: '/updateLog',
    method: 'post',
    params,
  })
}

export async function delUpdateLogAPI(params: { ids: string }) {
  return await http({
    url: '/deleteLog',
    method: 'post',
    params,
  })
}
